<?php

namespace App\Http\Controllers\Api\O1;

use Biz\Transformers\Site\RegistrationFeeTransformerCollection;
use Illuminate\Http\Request;
use Biz\Services\Site\SiteRegistrationFeeService;
use Laravel\Lumen\Routing\Controller as BaseController;
use Biz\Resources\Site\SiteRegistrationFeeResourceCollection;

/**
 * RegistrationFeeController.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class RegistrationFeeController extends BaseController
{
    /**
     * @var mixed
     */
    protected $service;

    /**
     * RegistrationFeeController constructor.
     *
     * @param SiteRegistrationFeeService $service
     */
    public function __construct(SiteRegistrationFeeService $service)
    {
        $this->service = $service;
    }

    /**
     * 所有注册费用列表.
     *
     * @return \Illuminate\Http\Response
     */
    public function all(Request $request)
    {
        $results = $this->service->getAll($request);

        return new RegistrationFeeTransformerCollection($results);
    }
}
